using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace MoMing.VideoTool.Downloader.Model
{
    public class DownloadLog
    {
        public DownloadLog(string videoId,string title, string plateForm, string url, string fileFullPath)
        {
            Id = Guid.NewGuid();
            VideoId = videoId;
            Title = title;
            PlateForm = plateForm;
            Url = url;
            FileFullPath = fileFullPath;
        }
        public Guid Id { get; set; }

        public string VideoId { get; set; }
        [Required,MaxLength(200)]
        public string Title { get; set; }
        [Required,MaxLength(20)]
        public string PlateForm { get; set; }
        [Required,MaxLength(500)]
        public string Url { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.UtcNow;
        [Required,MaxLength(300)]
        public string FileFullPath { get; set; }
    }
}